package JVM工作区.优化案例;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName: jvmUpdate01
 * @Author: AllenSun
 * @Date: 2022/11/8 下午8:51
 */
public class jvmUpdate01 {
    static class StaticObject {

    }

    public static void main(String[] args) {
        List<StaticObject> list = new ArrayList<StaticObject>();
        int i=1;
        while (true) {
            list.add(new StaticObject());
            i++;
            System.out.println(i);
            System.out.println(list.size());
        }
    }
}
